home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-02-14 | 868 b | 31 lines | [TEXT/CCL2] |
- ;;; select-country.lisp
- ;;;
- ;;; CONQUEST AI PROJECT
- ;;;
- ;;; Washington University Computer Science Department
- ;;; Copyright 1993 Paul McCartney. All Rights Reserved.
- ;;;
- ;;; AUTHOR:
- ;;;
- ;;; DESCRIPTION:
- ;;;
- ;;; This file is a player's select country module, containing code for determining
- ;;; a country to select during the first round of Conquest.
- ;;;
- ;;; USE:
- ;;;
- ;;; Define the method called "select-country". This method will be called from the
- ;;; control object as needed.
- ;;;
- ;;; >> Change all occurrences of "generic" to a unique identifier (e.g. your login name)
-
- (in-package :generic)
-
-
- ;;; To override the default "basic-player" behavior, replace the "call-next-method"
- ;;; call with code to decide an attack move. This method should return:
- ;;;
- ;;; <available-country>
- ;;;
- (defmethod select-country ((player generic-player))
- (call-next-method))